﻿using SHFK.B2C.YouZanYun.Network;
using SHKF.B2C.Mannage.AdminUI.Network;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;　

namespace SHKF.B2C.Mannage.AdminUI
{
    public class GL
    {
        public static string uriString = ConfigurationManager.AppSettings["urlMananger"];
         
        private static HttpClientManage httpClientManage;
        public static HttpClientManage HttpClientManage
        {
            get
            {
                if (httpClientManage == null)
                {
                    httpClientManage = new HttpClientManage();
                }
                 
                return httpClientManage;
            }
        }

        private static HttpClientYouZanYun httpClientYzy;
        public static HttpClientYouZanYun HttpClientYzy
        {
            get
            {
                if (httpClientYzy == null)
                {
                    string urlDb = ConfigurationManager.AppSettings["urlYouZanYun"];
                    httpClientYzy = new HttpClientYouZanYun(urlDb);
                }

                return httpClientYzy;
            }
        }

        private static HttpClientMtps httpClientMtps;
        public static HttpClientMtps HttpClientMtps
        {
            get
            {
                if (httpClientMtps == null)
                {
                    httpClientMtps = new HttpClientMtps();
                }


                return httpClientMtps;
            }
        }

        public static HttpClientYouZanYun CreateYouZanYun()
        {

            string urlDb = ConfigurationManager.AppSettings["urlYouZanYun"];
            HttpClientYouZanYun httpClientYzy = new HttpClientYouZanYun(urlDb);
            return httpClientYzy;

        }
    }

}
